home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Sample Editors⁄Viewers / Text Editor / Source / StdTextProps.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-13  |  1.8 KB  |  80 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        StdTextProps.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:    Steve Smith
  7.     
  8.     Copyright:    © 1994-1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #ifndef _STDTEXTPROPERTIES_
  12. #define _STDTEXTPROPERTIES_
  13.     
  14. // These properties are defined for use with all parts which
  15. // can edit text content and support styling of that content.
  16.  
  17. #define kStdProp_Font                "Content:Property:Font"
  18. #define kStdProp_DefaultFont        "Editor:Property:Default Font"
  19.     // use kODIntlText to describe font name & kODUShort to describ font number
  20.     
  21. #define kStdProp_FontStyle            "Content:Property:Font Style Actions"
  22. #define kStdValu_StyleActions        "Content:Value:List of ODUShort"
  23.     // <see below for action values>
  24.     
  25. #define kStdProp_FontSize            "Content:Property:Font Size"
  26. #define kStdProp_DefaultFontSize    "Editor:Property:Default Font Size"
  27.     // use kODUShort to describe font size
  28.  
  29. #define kStdProp_TextAlignment        "Content:Property:Text Alignment"
  30.     // use kODUShort to describe alignment <see below for alignment values>
  31.     
  32. #define kStdProp_TextColor            "Content:Property:Text Color"
  33. #define kStdValu_6Byte_RGBColor        "Content:Value:6Byte RGB Color"
  34.  
  35.  
  36.  
  37.  
  38. // style actions
  39.  
  40. typedef enum {
  41.     removeAllStyle = 1,
  42.     
  43.     addBoldStyle = 10,        /* Add style to selection regardless of current state */
  44.     addItalicStyle,
  45.     addUnderlineStyle,
  46.     addOutlineStyle,
  47.     addShadowStyle,
  48.     addSmallcapsStyle,
  49.     addStrikethruStyle,
  50.     addCondenseStyle,
  51.     addExtendStyle,
  52.     addSuperscriptStyle,
  53.     addSubscriptStyle,
  54.     
  55.     removeBoldStyle = 30,    /* Remove style from selection regardless of current state */
  56.     removeItalicStyle,
  57.     removeUnderlineStyle,
  58.     removeOutlineStyle,
  59.     removeShadowStyle,
  60.     removeSmallcapsStyle,
  61.     removeStrikethruStyle,
  62.     removeCondenseStyle,
  63.     removeExtendStyle,
  64.     removeSuperscriptStyle,
  65.     removeSubscriptStyle
  66.     
  67. } StdStyleActions;
  68.  
  69. // text alignment
  70.  
  71. typedef enum {
  72.     left = 1,
  73.     center,
  74.     right,
  75.     fulljustification
  76.     
  77. } StdTextAlignment;
  78.  
  79.  
  80. #endif